Keytool is a Java Data Certificate management tool that keytool the key (key) and certificate (certificates) in a file called KeyStore in KeyStore, containing two kinds of data:Key Entity--key (secret key) or private key and paired public key (with asymmetric encryption)Trusted certificate Entity (trusted certificate entries)--only public key is includedAilas (al
Java keytool usage Summary)
Keytool is a Java data certificate management tool. keytool stores keys and certificates in a file called keystore in the keystore, which contains two types of data:Key entity-secret key or private key and paired Public Key (asymmetric encryption)
First, use keytool to generate a certificate.1. Generate a keyD:/> keytool-genkey-alias Wenger-keysize 1024-keypass abcdef-keystore mykeysTore-storepass abcdef-dname "cn = Chen Sr, ou = tanglab, O = lab, L = GZ, St = Gd, c = cn"
2. Export the key and save it as a certificateD:/> keytool-export-alias Wenger-file mycert. cer-keystore mykeystore-storepass abcdefAuth
key pair (Public Key and private key) and specify the alias. you can also use the-import parameter to add a certificate or certificate chain to the trusted certificate.
For example:
Keytool-genkey-alias Duke-keypass dukekeypasswd
Duke is the alias and dukekeypasswd is the password of the duke alias. This command is used to generate a new public/private key pair.
If you want to change the pas
where you import the Java default certificate cacerts Rapa.certKeytool-import-alias Rapaserver-keystore cacerts-file Rapa.cert-keystore cacerts4. Deletion of certificate entriesKeytool command line arguments-delete can delete entries in the KeyStore, such as: Keytool-delete-alias rapaserver-keystore d2aapplet.keystore, this command Rapaserver in D2aapplet.keystore This certificate has been deleted.5. Modif
Keytool is a Java Data Certificate management tool that Keytool the key (key) and certificate (certificates) in a file called KeyStore in KeyStore, containing two kinds of data: key entity Entity)-the key (secret key) or the private key and the paired public key (with asymmetric encryption) can be trusted by the certificate entity (trusted certificate entries)-co
Overview
With Java JSSE (Java Secure Socket Extension) technology, we can easily write Secure Sockets program, about JSSE introduction, you can see the Oracle Web site provides JSSE guidance. In the process of programming, we need to apply the digital certificate to the code. Usually in the formal product development, we can pay a certain fee to the formal certification bodies, such as: Verisign, GeoTrust,
Use the keytool command that comes with Java to generate it in the command line. 1. Generate the server-side Private Key kserver. keystore file keytool-genkey-alias serverkey-validity 1-keystore kserver. keystore 2. export the server-side security certificate keytool-export-alias serverkey-keystore kserver based on the
I used this stuff a few times before, but I have to check it again. The original source of this article is here.-----------------------------------------------------------Keytool is a Java Data certificate management tool that Keytool the key(key) and certificate (certificates) in a file called KeyStore in KeyStore, containing two kinds of data:Key Entity--key (s
Keytool is a security key and certificate management tool. It manages a keystore (quite a database) of the associated X.509 certificate chain that stores the private key and verifies the corresponding public key.
Keytool is an effective security key and certificate management tool. It enables users to use digital signatures to manage their own private/public key pairs, manage certificates related to authen
Keytool is a management tool for Java data certificates.Keytool the key (key) and certificate (certificates) exist in a file called KeyStore in KeyStore,Contains two types of data:Key Entity--key (secret key) or private key and paired public key (with asymmetric encryption)Trusted certificate Entity (trusted certificate entries)--only public key is includedAilas (alias) Each keystore is associated with this
1, set the Java environment variable (ignore) 2, use Keytool to generate the KeyStore (I do not know how to call, someone called him the library, anyway know he is a storehouse on the line) (the following operations are running under DOS, plus-help to view the parameters of the command, For example, the command to generate the KeyStore is Keytool-genkey, and you
The use of KeytoolThe Keytool program is provided by the JDK to generate and view certificates and keys. The KeyStore is a key container that can hold multiple key and related information.Each key is referenced by an alias aliases. You can export the key in KeyStore to a certificate file. cer. Obviously, the. cer generated with Keytoolis a certificate that is not signed by the CA.
Add a key
Keytool-genkey-a
Tutorial: http://www.cnblogs.com/getherBlog/p/3930317.htmlSeveral commands are used:Keytool-genkeypair-alias certificatekey -keyalg rsa-validity 7-keystore Keystore.jksKeytool-export-alias Certificatekey-key Store Keystore.jks-rfc-file selfcert.cerKeytool-Import -alias certificatekey-file selfcert.cer-keystore Truststore.jksWith administrator privileges, enter the appropriate content, these three commands can generate two SSL key files, Keystore.jks
Java tutorial translation Sequence Java Introduction Build a JSE development environment-install JDK and eclipse Language basics Java Hello World Program Analysis Variable Java Variables Java Native type Conversion of
Preach Wisdom Blog Video tutorial Download summary |java video tutorial |net video tutorial |php video tutorial | Web video Tutorial
Preach Wisdom Blog Video tutorial Download summary
Java security tutorial-create an SSL connection and CertificateThis article is translated from javacodegeeks by ImportNew-hejiani. Welcome to the Java group. For more information, see the requirements at the end of the article.
In our series of articles on Java EE security, we have also described in detail how to creat
Java quick tutorial and Java tutorialAuthor: Vamei Source: http://www.cnblogs.com/vamei
Java is an object-oriented language. This language was actually quite young and was only available in 1995, produced by Sun. James Gosling led the Java project team. The project initia
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.